#ifdef	__cplusplus
extern "C" {
#endif

#define MODE_NUMERIC                0
#define MODE_TEXT                   1
#define MODE_PASSWORD               2

#include "editbox.h"

    typedef struct editbox {
        unsigned int x;
        unsigned int y;
        unsigned int h;
        unsigned int w;
        unsigned int bg_r;
        unsigned int bg_g;
        unsigned int bg_b;
        unsigned int font_r;
        unsigned int font_g;
        unsigned int font_b;
        unsigned int border;
        unsigned int font_height;
		unsigned int redraw;
		signed int id;
        signed int windowId;
        window *winp;
        struct editbox *next;
        struct editbox *previous;
        unsigned char selected;
        unsigned char visible;
        unsigned char initialized;
        unsigned char editable;
        unsigned char mode;
        unsigned char text[EDITBOX_MAX_TEXT];
    } editbox;

#ifdef	__cplusplus
}
#endif
